#!/bin/bash -e

function info() {
echo Usage: `basename $0` 'geno.prefix'
exit 1
}

while getopts  ":p:f:" opt; do
	case  $opt  in
		p) out_prefix=$OPTARG;;
		f) suffix=$OPTARG;;
		*) info;;
	esac
done
shift $(($OPTIND - 1))

if [ $# -lt 1 ]; then info; fi

. $var

cat > $out_prefix.parfile <<test
genotypename:    $1.geno
snpname:         $1.snp
indivname:       $1.ind
outputformat:    PED
genotypeoutname: $out_prefix.ped
snpoutname:      $out_prefix.snp
indivoutname:    $out_prefix.ind
test


converf -p $out_prefix.parfile

. $cmd_done
